import { sys_feedback, sys_user } from "@prisma/client";
import { BaseEntity } from "../base.entity/base.entity";
import { Field, Int, ObjectType } from "@nestjs/graphql";
import { SysUserEntity } from "../sys.user.entity/sys.user.entity";
import { SysTestQuestionEntity } from "../sys.test.question.entity/sys.test.question.entity";

@ObjectType()
export class SysFeedbackEntity extends BaseEntity implements sys_feedback {
    @Field(() => Int)
    sys_userId: number;

    @Field(() => SysUserEntity)
    sys_user: SysUserEntity;

    @Field(() => Int)
    sys_test_questionId: number;

    @Field(() => SysTestQuestionEntity)
    sys_test_question: SysTestQuestionEntity;

    @Field()
    desc: string;

    @Field()
    reply: string;
}
